Optimal. Leaf size=163 \[ \frac {3 F_1\left (\frac {1}{3};1,\frac {1}{2};\frac {4}{3};-i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right ) \sqrt [3]{\tan (c+d x)} \sqrt {1+\frac {b \tan (c+d x)}{a}}}{2 d \sqrt {a+b \tan (c+d x)}}+\frac {3 F_1\left (\frac {1}{3};1,\frac {1}{2};\frac {4}{3};i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right ) \sqrt [3]{\tan (c+d x)} \sqrt {1+\frac {b \tan (c+d x)}{a}}}{2 d \sqrt {a+b \tan (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 163, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3656, 926, 129,
441, 440} \begin {gather*} \frac {3 \sqrt [3]{\tan (c+d x)} \sqrt {\frac {b \tan (c+d x)}{a}+1} F_1\left (\frac {1}{3};1,\frac {1}{2};\frac {4}{3};-i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right )}{2 d \sqrt {a+b \tan (c+d x)}}+\frac {3 \sqrt [3]{\tan (c+d x)} \sqrt {\frac {b \tan (c+d x)}{a}+1} F_1\left (\frac {1}{3};1,\frac {1}{2};\frac {4}{3};i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right )}{2 d \sqrt {a+b \tan (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 129
Rule 440
Rule 441
Rule 926
Rule 3656
Rubi steps
\begin {align*} \int \frac {1}{\tan ^{\frac {2}{3}}(c+d x) \sqrt {a+b \tan (c+d x)}} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{x^{2/3} \sqrt {a+b x} \left (1+x^2\right )} \, dx,x,\tan (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (\frac {i}{2 (i-x) x^{2/3} \sqrt {a+b x}}+\frac {i}{2 x^{2/3} (i+x) \sqrt {a+b x}}\right ) \, dx,x,\tan (c+d x)\right )}{d}\\ &=\frac {i \text {Subst}\left (\int \frac {1}{(i-x) x^{2/3} \sqrt {a+b x}} \, dx,x,\tan (c+d x)\right )}{2 d}+\frac {i \text {Subst}\left (\int \frac {1}{x^{2/3} (i+x) \sqrt {a+b x}} \, dx,x,\tan (c+d x)\right )}{2 d}\\ &=\frac {(3 i) \text {Subst}\left (\int \frac {1}{\left (i-x^3\right ) \sqrt {a+b x^3}} \, dx,x,\sqrt [3]{\tan (c+d x)}\right )}{2 d}+\frac {(3 i) \text {Subst}\left (\int \frac {1}{\left (i+x^3\right ) \sqrt {a+b x^3}} \, dx,x,\sqrt [3]{\tan (c+d x)}\right )}{2 d}\\ &=\frac {\left (3 i \sqrt {1+\frac {b \tan (c+d x)}{a}}\right ) \text {Subst}\left (\int \frac {1}{\left (i-x^3\right ) \sqrt {1+\frac {b x^3}{a}}} \, dx,x,\sqrt [3]{\tan (c+d x)}\right )}{2 d \sqrt {a+b \tan (c+d x)}}+\frac {\left (3 i \sqrt {1+\frac {b \tan (c+d x)}{a}}\right ) \text {Subst}\left (\int \frac {1}{\left (i+x^3\right ) \sqrt {1+\frac {b x^3}{a}}} \, dx,x,\sqrt [3]{\tan (c+d x)}\right )}{2 d \sqrt {a+b \tan (c+d x)}}\\ &=\frac {3 F_1\left (\frac {1}{3};1,\frac {1}{2};\frac {4}{3};-i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right ) \sqrt [3]{\tan (c+d x)} \sqrt {1+\frac {b \tan (c+d x)}{a}}}{2 d \sqrt {a+b \tan (c+d x)}}+\frac {3 F_1\left (\frac {1}{3};1,\frac {1}{2};\frac {4}{3};i \tan (c+d x),-\frac {b \tan (c+d x)}{a}\right ) \sqrt [3]{\tan (c+d x)} \sqrt {1+\frac {b \tan (c+d x)}{a}}}{2 d \sqrt {a+b \tan (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Both result and optimal contain complex but leaf count is larger than twice
the leaf count of optimal. \(6198\) vs. \(2(163)=326\).
time = 92.91, size = 6198, normalized size = 38.02 \begin {gather*} \text {Result too large to show} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.41, size = 0, normalized size = 0.00 \[\int \frac {1}{\sqrt {a +b \tan \left (d x +c \right )}\, \tan \left (d x +c \right )^{\frac {2}{3}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {a + b \tan {\left (c + d x \right )}} \tan ^{\frac {2}{3}}{\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\mathrm {tan}\left (c+d\,x\right )}^{2/3}\,\sqrt {a+b\,\mathrm {tan}\left (c+d\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________